package soccer.model.leagueTable;

import soccer.model.team.Team;

public class LeagueTable {
 private int leagueTableId;
 private int week;
 private int playedMatchNumber;
 private int average;
 private int wonMatchNumber;
 private int drawMatchNumber;
 private int defeatedMatchNumber;
 private int point;
 private int teamId;
 private Team team;
 

public LeagueTable(int week, int playedMatchNumber, int average,
		int wonMatchNumber, int drawMatchNumber, int defeatedMatchNumber,
		 int teamId) {
	super();
	this.week = week;
	this.playedMatchNumber = playedMatchNumber;
	this.average = average;
	this.wonMatchNumber = wonMatchNumber;
	this.drawMatchNumber = drawMatchNumber;
	this.defeatedMatchNumber = defeatedMatchNumber;
	this.teamId = teamId;
}


public int getWeek() {
	return week;
}
public void setTeamId(int teamId) {
	this.teamId = teamId;
}


public int getTeamId() {
	return teamId;
}


public void setWeek(int week) {
	this.week = week;
}
public int getPlayedMatchNumber() {
	return playedMatchNumber;
}
public void setPlayedMatchNumber(int playedMatchNumber) {
	this.playedMatchNumber = playedMatchNumber;
}
public int getAverage() {
	return average;
}
public void setAverage(int average) {
	this.average = average;
}
public int getWonMatchNumber() {
	return wonMatchNumber;
}
public void setWonMatchNumber(int wonMatchNumber) {
	this.wonMatchNumber = wonMatchNumber;
}
public int getDrawMatchNumber() {
	return drawMatchNumber;
}
public void setDrawMatchNumber(int drawMatchNumber) {
	this.drawMatchNumber = drawMatchNumber;
}
public int getDefeatedMatchNumber() {
	return defeatedMatchNumber;
}
public void setDefeatedMatchNumber(int defeatedMatchNumber) {
	this.defeatedMatchNumber = defeatedMatchNumber;
}
public int getPoint() {
	point = 3*wonMatchNumber + drawMatchNumber;
	return point;
}
public void setPoint(int point) {
	this.point = point;
}


public void setLeagueTableId(int leagueTableId) {
	this.leagueTableId = leagueTableId;
}


public int getLeagueTableId() {
	return leagueTableId;
}


public void setTeam(Team team) {
	this.team = team;
}


public Team getTeam() {
	return team;
}
  
  
}
